09527119ba89d8b31a7ef0fe59da4d505d1af610,software/base/src/main/java/brooklyn/entity/basic/AbstractSoftwareProcessSshDriver.java,AbstractSoftwareProcessSshDriver,newScript,#Map#String#,286

Before Change


                        "export PID=`cat "+pidFile+"`",
                        "[[ -n \"$PID\" ]] || exit 0",
                        BashCommands.sudoAsUser(processOwner, "kill $PID"),
                        BashCommands.sudoAsUser(processOwner, "kill -9 $PID"),
                        "rm -f "+pidFile
                        );
            } else if (KILLING.equals(phase)) {

After Change


                        "export PID=`cat "+pidFile+"`",
                        "[[ -n \"$PID\" ]] || exit 0",
                        processOwner != null ? BashCommands.sudoAsUser(processOwner, "kill $PID") : "kill $PID",
                        processOwner != null ? BashCommands.sudoAsUser(processOwner, "kill -9 $PID") : "kill -9 $PID",
                        "rm -f "+pidFile
                        );
            } else if (KILLING.equals(phase)) {